package com.study.talk.netty.message.request;


import com.study.common.annotation.Desc;
import com.study.talk.netty.message.EnumMessageType;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("同意加入群聊请求")
public class AcceptGroupRequest extends TalkMessage {

    @Desc("群聊id")
    private Integer groupId;

    @Desc("用户id")
    private Integer userId;

    @Desc("邀请人id")
    private Integer inviteUserId;

    @Desc("是否同意")
    private Boolean accept;

    @Override
    public byte getType() {
        return MessageType.ACCEPT_GROUP_REQUEST;
    }


    public AcceptGroupRequest() {
    }

    public AcceptGroupRequest(Integer groupId, Integer userId, Integer inviteUserId, Boolean accept,String dateTime) {
        this.groupId = groupId;
        this.userId = userId;
        this.inviteUserId = inviteUserId;
        this.accept = accept;
        super.dateTime =  dateTime;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getInviteUserId() {
        return inviteUserId;
    }

    public void setInviteUserId(Integer inviteUserId) {
        this.inviteUserId = inviteUserId;
    }

    public Boolean getAccept() {
        return accept;
    }

    public void setAccept(Boolean accept) {
        this.accept = accept;
    }
}
